Package-level declarations

Types

Link copied to clipboard
@Serializable
data class ChosenInlineResult(val resultId: String, val from: User, val location: Location? = null, val inlineMessageId: String? = null, val query: String)

Represents a result of an inline query that was chosen by the user and sent to their chat partner. Note: It is necessary to enable inline feedback via @BotFather in order to receive these objects in updates.

Link copied to clipboard
@Serializable
data class InlineQuery(val id: String, val from: User, val query: String, val offset: String, val chatType: ChatType? = null, val location: Location? = null)

This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.

Link copied to clipboard
@Serializable
sealed class InlineQueryResult

This object represents one result of an inline query. Telegram clients currently support results of the following 20 types:

Link copied to clipboard
@Serializable
data class InlineQueryResultsButton(val text: String, val webApp: WebAppInfo? = null, val startParameter: String? = null)

This object represents a button to be shown above inline query results. You must use exactly one of the optional fields.

Link copied to clipboard
@Serializable
data class SwitchInlineQueryChosenChat(val query: String? = null, val allowUserChats: Boolean? = null, val allowBotChats: Boolean? = null, val allowGroupChats: Boolean? = null, val allowChannelChats: Boolean? = null)

This object represents an inline button that switches the current user to inline mode in a chosen chat, with an optional default inline query.